[index]

Units Property

Syntax

For paths and timers:
set the units of <path | timer> to <milliseconds | seconds | ticks> For movies: set the units of <movie> to <milliseconds | seconds | ticks | asComposed> For sounds: set the units of <sound> to <milliseconds | seconds | ticks | samples> Applies to movies, paths, sounds, timers

Description

The units property determines the units of time used by the specified object. You can specify that units should be counted in either seconds, milliseconds, or ticks (one-sixtieths of a second). The default setting of the units property is ticks. For movies, a units setting of asComposed uses the units defined in the movie description. Use the unitRate property to figure out the setting. For sounds, a units setting of samples uses the sampling rate at which the sound was recorded; samples is synonymous with asComposed.

Notes

For timers, the setting of this property is overriden if you start the timer in single fire mode (by specifying the expire option on the start command, and specifying a value for units).

Examples

The following handler uses the units property in the script of a card to specify that units for the TimeAttack timer should be counted in seconds and that the timer will count 30 seconds before going off. on openCard start timer "TimeAttack" expire in 30 seconds
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.